
export const auditOption = {
  border: true,
  stripe: true,
  menuAlign: 'center',
  editBtn: false,
  searchSpan: 7,
  delBtn: false,
  labelWidth: '200',
  searchMenuSpan: 6,
  align: 'center',
  addBtn: false,
  column: [{
      label: '创建时间',
      span: 24,
      width: 140,
      search: true,
      searchslot:true,
      searchSpan: 11,
      prop: 'create_time',
      editDisplay: false,
      addDisplay: false,
    },
    {
      label: "服务商",
      span: 24,
      type: "select",
      dicFlag: true,
      searchFilterable: true,
      search: true,
      dicUrl: process.env.VUE_APP_BASE_API + "/service/listAll",
      dicFormatter: res => {
        return (res.data || []).map(o => ({
          label: o.name,
          value: o.id
        }));
      },
      props: {
        label: "label",
        value: "value"
      },
      rules: [{
        required: true,
        message: "请输入"
      }],
      prop: "service_id"
    },
    {
      label: '计费模式',
      span: 10,
      type: "select",
      dicFlag: true,
      dicUrl: process.env.VUE_APP_BASE_API + "/dict/find?type=billing_type",
      dicFormatter: res => {
        return (res.data || []).map(o => ({
          label: o.label,
          value: o.value
        }));
      },
      rules: [{
        required: true,
        message: "请输入"
      }],
      props: {
        label: "label",
        value: "value"
      },
      prop: "method_id"
    },
    {
      label: '服务费承担方',
      prop: 'pay_type',
      type: 'radio',
      span: 10,
      dicData: [{
        label: '企业承担',
        value: 2
      }, {
        label: '自由职业者承担',
        value: 1
      }]
    },
    {
      label: "企业名称",
      span: 24,
      type: "select",
      dicFlag: true,
      searchFilterable: true,
      search: true,
      dicUrl: process.env.VUE_APP_BASE_API + "/company/listAll",
      dicFormatter: res => {
        return (res.data || []).map(o => ({
          label: o.company_name,
          value: o.id
        }));
      },
      props: {
        label: "label",
        value: "value"
      },
      rules: [{
        required: true,
        message: "请输入"
      }],
      prop: "company_id"
    },
    {
      label: '企业支付金额',
      prop: 'money',
      span: 10,
      rules: [{
        required: true,
        message: "请输入"
      }],
    }, {
      label: '批次状态',
      prop: 'status',
      type: 'radio',
      search: true,
      editDisplay: false,
      addDisplay: false,
      dicFlag: true,
      dicUrl: process.env.VUE_APP_BASE_API + "/dict/find?type=batch_status",
      dicFormatter: res => {
        return (res.data || []).map(o => ({
          label: o.label,
          value: o.value
        }));
      },
      props: {
        label: "label",
        value: "value"
      },
      span: 24,
      rules: [{
        required: true,
        message: '请输入'
      }]
    }
  ]
}



export const auditResultOption = {
  border: true,
  stripe: true,
  menu: false,
  header: false,
  refreshBtn: false,
  columnBtn: false,
  labelWidth: '200',
  delBtn: false,
  align: 'center',
  addBtn: false,
  column: [{
    label: '职业者姓名',
    prop: 'name',
    span: 24
  }, {
    label: '身份证号',
    prop: 'code',
    span: 24
  }, {
    label: '企业支付金额',
    prop: 'money',
    span: 24
  }, {
    label: '服务费',
    prop: 'charge',
    span: 24
  }, {
    label: '实得金额',
    prop: 'total',
    span: 24
  }, {
    label: '打款状态',
    prop: 'status',
    span: 24,
    type: 'radio',
    dicData: [{
      label: '等待打款',
      value: 0
    }, {
      label: '打款成功',
      value: 1
    }, {
      label: '打款失败',
      value: 2
    }]
  }, {
    label: '备注',
    prop: 'remark',
    span: 24
  }, {
    label: '校验结果',
    prop: 'result',
    span: 24,
    rules: [{
      required: true,
      message: '请输入'
    }]
  }]
}


export const auditFormOption = {
  submitText: '提交',
  emptyText: '取消',
  column: [{
      label: "审核状态",
      type: "select",
      dicFlag: true,
      dicUrl: process.env.VUE_APP_BASE_API + "/dict/find?type=batch_status",
      dicFormatter: res => {
        return (res.data || []).map(o => ({
          label: o.label,
          value: o.value
        }));
      },
      props: {
        label: "label",
        value: "value"
      },
      rules: [{
        required: true,
        message: "请输入"
      }],
      span: 24,
      prop: "status"
    },
    {
      label: "工资表",
      prop: 'file',
      formslot: true,
      span: 24
    },
    {
      label: "电子回单",
      prop: 'receipt',
      span: 24,
      type: 'upload',
      listType: 'picture-img',
      tip: '请上传JPG图片，大小不要超过1M',
      oss: 'qiniu',
      propsHttp: {
        name: 'hash',
        url: "key"
      },
    },
    {
      label: "文件校验",
      prop: 'result',
      formslot: true,
      span: 24
    },
  ]

}



